//
//  SandboxUnit.h
//  NetworkTaxiDriver
//
//  Created by thinkjoy on 16/9/22.
//  Copyright © 2016年 Thinkjoy_RS. All rights reserved.
//  获得沙盒路径

#import <Foundation/Foundation.h>
/**
 *  沙盒路径类型
 */
typedef NS_ENUM(NSUInteger, RSSearchPathDirectory) {
    /**
     *  跟目录
     */
    RSSearchPathDirectoryHome = 0,
    /**
     *  Document
     */
    RSSearchPathDirectoryDocuments,
    /**
     *  Library
     */
    RSSearchPathDirectoryLibrary,
    /**
     *  cache
     */
    RSSearchPathDirectoryCache,
    /**
     *  tmp
     */
    RSSearchPathDirectoryTmp,
};

@interface SandboxUnit : NSObject


/**
 *  获得沙盒路径
 *
 *  @param SearchPathDirectory 沙盒类型
 *  @param fileName            文件名字
 *
 *  @return 带有名字的沙盒路径
 */
+ (NSString *)getFilePathWithSearchPathDirectory:(RSSearchPathDirectory )SearchPathDirectory fileName:(NSString *)fileName;

@end
